// import axios from 'axios'
import instance from '../utils/request'
import { getToken } from '../utils/token'
// const instance = axios.create({
//   baseURL: 'http://toutiao-app.itheima.net'
// })
const getuserInfo = () => {
  return instance({
    method: 'get',
    url: '/v1_0/user/profile',
    headers: {
      Authorization: `Bearer ${getToken().token}`
    }
  })
}
export { getuserInfo }
